package com.gamesmile.framework.util
{
	import flash.filters.BitmapFilterQuality;
	import flash.filters.DropShadowFilter;
	import flash.filters.GlowFilter;

	public class FilterUtil
	{
		public function FilterUtil()
		{
		}
		public static function getDropShadowFilter():DropShadowFilter
		{
			var dropShadow:DropShadowFilter = new DropShadowFilter();
			dropShadow.distance = 30;
			dropShadow.angle = 45;
			dropShadow.color = 0x000000;
			dropShadow.alpha = 1;
			dropShadow.blurX = 5;
			dropShadow.blurY = 5;
			dropShadow.strength = 0.3;
			dropShadow.quality = 15;
			dropShadow.inner = false;
			dropShadow.knockout = false;
			dropShadow.hideObject = false;
			
			return dropShadow;
		}
		public static function getGlowingFilter(color:uint):GlowFilter
		{
			var glowFilter:GlowFilter = new GlowFilter();
			glowFilter.blurX = 6;
			glowFilter.blurY = 6;
			glowFilter.color = color;
			glowFilter.quality = BitmapFilterQuality.LOW;
			glowFilter.strength = 2;
			
			return glowFilter;
		}
	}
}